package com.jxmcloud.business.cut.service.impl.database;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jxmcloud.business.cut.mapper.database.IRewardPoolDBMapper;
import com.jxmcloud.business.cut.model.database.DBRewardPool;
import com.jxmcloud.business.cut.service.database.IRewardPoolDBService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RewardPoolDBServiceImpl extends ServiceImpl<IRewardPoolDBMapper, DBRewardPool> implements IRewardPoolDBService {
    @Override
    public boolean insertIntoData(DBRewardPool info) {
        return this.baseMapper.insert(info) == 1;
    }

    @Override
    public DBRewardPool selectOne(Integer uid) {
        return this.baseMapper.selectById(uid);
    }

    @Override
    public boolean deleteData(Integer uid) {
        return this.baseMapper.deleteById(uid) == 1;
    }

    @Override
    public boolean updateData(DBRewardPool info) {
        return this.baseMapper.updateById(info) == 1;
    }
}
